<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function Std(name, id, sex, grade) {
        this.name = name
        this.id = id
        this.sex = sex
        this.grade = sex
        this.sayHi = function () {
          alert(`你好我是${name}!`)
        }
      }
      var Gao = new Std('高一帆', 9527, '男', '前端56期')
      Gao.sayHi()
      console.log(Gao)
    </script>
  </body>
</html>
